#ifndef FUNCTIONS_H_INCLUDED
#define FUNCTIONS_H_INCLUDED

struct node
{
    int info;
    struct node *next;
};
typedef struct node Tnode;

struct list
{
    Tnode *first;
    Tnode *last;
};
typedef struct list LIST;

void insert_left(int, LIST *);
void insert_right(int, LIST *);
void print_list(LIST);
void do_signed_magnitude();
void undo_signed_magnitude();
void do_ones_complement();
void undo_ones_complement();


#endif // FUNCTIONS_H_INCLUDED
